furny.ga
Class FurnEntryList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<FurnEntry>
              extended by furny.ga.FurnEntryList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<FurnEntry>, java.util.Collection<FurnEntry>, java.util.List<FurnEntry>, java.util.RandomAccess

public class FurnEntryList
extends java.util.ArrayList<FurnEntry>

This is a list for furniture entries.

Since:
11.08.2012
Author:
Stephan Dreyer
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FurnEntryList()
          Creates an empty list.
FurnEntryList(java.util.Collection<FurnEntry> c)
          Creates a list and copies furniture entries from the given list.
 
Method Summary
 FurnEntryList clone()
           
 boolean containsFurniture(Furniture f)
          Searches all furniture entries for the given furniture.
 FurnEntryList getEntries(Furniture f)
          Getter for all furniture entries with the given furniture.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FurnEntryList

public FurnEntryList(java.util.Collection<FurnEntry> c)
Creates a list and copies furniture entries from the given list.

Parameters:
c - List to copy.
Since:
11.08.2012

FurnEntryList

public FurnEntryList()
Creates an empty list.

Since:
11.08.2012
Method Detail

containsFurniture

public boolean containsFurniture(Furniture f)
Searches all furniture entries for the given furniture.

Parameters:
f - The furniture to search.
Returns:
true, if contained.
Since:
11.08.2012

getEntries

public FurnEntryList getEntries(Furniture f)
Getter for all furniture entries with the given furniture.

Parameters:
f - The furniture to search.
Returns:
The list of furniture entries containing the furniture.
Since:
11.08.2012

clone

public FurnEntryList clone()
Overrides:
clone in class java.util.ArrayList<FurnEntry>